/*
 * Copyright (c) 2019 Mike Penz
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.mikepenz.iconics.sample;

import ohos.aafwk.ability.AbilityPackage;

import com.mikepenz.iconics.Iconics;
import com.mikepenz.iconics.sample.typeface.CustomFont;
import com.mikepenz.iconics.typeface.GenericFont;

public class MyApplication extends AbilityPackage {
    @Override
    public void onInitialize() {
        super.onInitialize();
        com.mikepenz.iconics.typeface.library.weathericons.Initializer.init(getContext());
        com.mikepenz.iconics.typeface.library.typeicons.Initializer.init(getContext());
        com.mikepenz.iconics.typeface.library.pixeden7stroke.Initializer.init(getContext());
        com.mikepenz.iconics.typeface.library.phosphor.Initializer.init(getContext());
        com.mikepenz.iconics.typeface.library.octicons.Initializer.init(getContext());
        com.mikepenz.iconics.typeface.library.meteoconcs.Initializer.init(getContext());
        com.mikepenz.iconics.typeface.library.materialdesigniconic.Initializer.init(getContext());
        com.mikepenz.iconics.typeface.library.materialdesigndx.Initializer.init(getContext());
        com.mikepenz.iconics.typeface.library.ionicons.Initializer.init(getContext());
        com.mikepenz.iconics.typeface.library.foundationicons.Initializer.init(getContext());
        com.mikepenz.iconics.typeface.library.fontawesome.Initializer.init(getContext());
        com.mikepenz.iconics.typeface.library.entypo.Initializer.init(getContext());
        com.mikepenz.iconics.typeface.library.devicon.Initializer.init(getContext());
        com.mikepenz.iconics.typeface.library.googlematerial.Initializer.init(getContext());
        com.mikepenz.iconics.typeface.library.googlematerial.OutlinedInitializer.init(getContext());
        com.mikepenz.iconics.typeface.library.googlematerial.RoundedInitializer.init(getContext());
        com.mikepenz.iconics.typeface.library.googlematerial.SharpInitializer.init(getContext());
        com.mikepenz.iconics.typeface.library.community.material.Initializer.init(getContext());
        CustomFont customFont = CustomFont.getInstance();
        Iconics.getInstance().registerFont(customFont);
        GenericFont genericFont = new GenericFont("GenericFont", "SampleGenericFont", "gnf", "materialdrawerfont.ttf");
        genericFont.registerIcon("person", '\ue800');
        genericFont.registerIcon("up", '\ue801');
        genericFont.registerIcon("down", '\ue802');
        Iconics.getInstance().registerFont(genericFont);
    }
}
